package com.aaa.web.dao.iemployeedao;

import com.aaa.entity.AppBatteryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * IPayDao
 *
 * @author yyh
 * @date 2018/12/27
 * @time 20:05
 */
@Mapper
@Component
public interface IPayDao {
    /**
     * @Author yyh
     * @Description //插入订单信息
     * @Date 2019/1/3 9:52 
     * @Param [order]
     * @return java.lang.Integer
     **/
    Integer addAppOrder(AppBatteryOrder order);
    /**
     * @Author yyh
     * @Description //支付成功更新订单状态
     * @Date 2019/1/3 9:52
     * @Param []
     * @return java.lang.Integer
     **/
    Integer updateState();

    /**
     * @Author yyh
     * @Description //插入消费信息
     * @Date 2019/1/3 9:53 
     * @Param [map]
     * @return java.lang.Integer
     **/
    Integer addBackOrder(Map map);
    Integer insertBattery(String pid);
    Integer changeBatteryCount(String pid);
}
